﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ToleranceConfigDetails.aspx.cs"
    Inherits="CSC440TeamOne.Admin.Views.ToleranceConfigDetails" Title="ToleranceConfigDetails"
    MasterPageFile="~/Shared/DefaultMaster.master" %>

<asp:Content ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .lblinput label
        {
            display: block;
        }
        .lblinput input[type='text'], .lblinput textarea
        {
            width: 40em;
            margin-bottom: 1em;
        }
        .lblinput textarea
        {
            min-height: 10em;
        }
    </style>
</asp:Content>
<asp:Content ID="content" ContentPlaceHolderID="DefaultContent" runat="Server">
    <h1>
        ToleranceConfigDetails</h1>
    <asp:MultiView runat="server" ID="mvState" ActiveViewIndex="0">
        <asp:View runat="server" ID="vwError">
            ERROR!
        </asp:View>
        <asp:View runat="server" ID="vwRead">
            <p>
                <asp:Label runat="server">Name:</asp:Label>
                <asp:Literal runat="server" ID="litName"></asp:Literal>
                <br />
                <asp:Label runat="server">Description:</asp:Label>
                <asp:Literal runat="server" ID="litDescription"></asp:Literal>
                <br />
                <asp:Label runat="server">Formula:</asp:Label>
                <asp:Literal runat="server" ID="litFormula"></asp:Literal>
            </p>
        </asp:View>
        <asp:View runat="server" ID="vwEdit">
            <p class="lblinput">
                <asp:Label runat="server" AssociatedControlID="txtName">Name:</asp:Label>
                <asp:RequiredFieldValidator runat="server" ControlToValidate="txtName" ErrorMessage="Name is a required Field"
                    SetFocusOnError="true" Display="Dynamic">*</asp:RequiredFieldValidator>
                <asp:TextBox runat="server" ID="txtName"></asp:TextBox>
                <br />
                <asp:Label runat="server" AssociatedControlID="txtDescription">Description:</asp:Label>
                <asp:TextBox runat="server" ID="txtDescription" TextMode="MultiLine"></asp:TextBox>
                <br />
                <asp:Label runat="server" AssociatedControlID="txtFormula">Formula:</asp:Label>
                <asp:TextBox runat="server" ID="txtFormula"></asp:TextBox>
                <br />
                <asp:Button runat="server" ID="btnSave" Text="Save" />
            </p>
        </asp:View>
        <asp:View runat="server" ID="vwSaveCompleted">
            Changes to this Health Parameter has been saved
        </asp:View>
    </asp:MultiView>
</asp:Content>
